<template>
	<view class="content">
		<view class="title">
			<image class="title-img" src="/static/logo.png"></image>
		</view>
		<view>
			<view class="form-item">
				<input class="input" v-model="formData.accountNumber" placeholder="请输入不少于6位数的字母+数字账号"
					@blur="validateAccountNumber" />
				<text class="error" v-if="errors.accountNumber">{{ errors.accountNumber }}</text>
			</view>
			<view class="form-item">
				<input class="input" v-model="formData.password" placeholder="密码" @blur="validatePassword"
					type="password" maxlength="12" />
				<text class="error" v-if="errors.password">{{ errors.password }}</text>
			</view>
			<view class="form-item">
				<input class="input" v-model="formData.invitationCode" placeholder="邀请码" @blur="validateInvitationCode"/>
				<text class="error" v-if="errors.invitationCode">{{ errors.invitationCode }}</text>
			</view>
		</view>
		<view class="foot" @click="register">
			<image class="foot-img" src="/static/muddlednessImg/login.png"></image>
			<text class="foot-login">确认注册</text>
		</view>
	</view>
</template>

<script src="./index.js"></script>
<style src="./index.scss" lang="scss"></style>